home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_xemacs.idb / usr / freeware / lib / xemacs-20.4 / info / lispref.info-25.z / lispref.info-25
Encoding:
GNU Info File  |  1998-05-21  |  49.8 KB  |  1,185 lines

  1. This is Info file ../../info/lispref.info, produced by Makeinfo version
  2. 1.68 from the input file lispref.texi.
  3.  
  4.    Edition History:
  5.  
  6.    GNU Emacs Lisp Reference Manual Second Edition (v2.01), May 1993 GNU
  7. Emacs Lisp Reference Manual Further Revised (v2.02), August 1993 Lucid
  8. Emacs Lisp Reference Manual (for 19.10) First Edition, March 1994
  9. XEmacs Lisp Programmer's Manual (for 19.12) Second Edition, April 1995
  10. GNU Emacs Lisp Reference Manual v2.4, June 1995 XEmacs Lisp
  11. Programmer's Manual (for 19.13) Third Edition, July 1995 XEmacs Lisp
  12. Reference Manual (for 19.14 and 20.0) v3.1, March 1996 XEmacs Lisp
  13. Reference Manual (for 19.15 and 20.1, 20.2) v3.2, April, May 1997
  14.  
  15.    Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995 Free Software
  16. Foundation, Inc.  Copyright (C) 1994, 1995 Sun Microsystems, Inc.
  17. Copyright (C) 1995, 1996 Ben Wing.
  18.  
  19.    Permission is granted to make and distribute verbatim copies of this
  20. manual provided the copyright notice and this permission notice are
  21. preserved on all copies.
  22.  
  23.    Permission is granted to copy and distribute modified versions of
  24. this manual under the conditions for verbatim copying, provided that the
  25. entire resulting derived work is distributed under the terms of a
  26. permission notice identical to this one.
  27.  
  28.    Permission is granted to copy and distribute translations of this
  29. manual into another language, under the above conditions for modified
  30. versions, except that this permission notice may be stated in a
  31. translation approved by the Foundation.
  32.  
  33.    Permission is granted to copy and distribute modified versions of
  34. this manual under the conditions for verbatim copying, provided also
  35. that the section entitled "GNU General Public License" is included
  36. exactly as in the original, and provided that the entire resulting
  37. derived work is distributed under the terms of a permission notice
  38. identical to this one.
  39.  
  40.    Permission is granted to copy and distribute translations of this
  41. manual into another language, under the above conditions for modified
  42. versions, except that the section entitled "GNU General Public License"
  43. may be included in a translation approved by the Free Software
  44. Foundation instead of in the original English.
  45.  
  46. 
  47. File: lispref.info,  Node: Choosing Window,  Next: Window Point,  Prev: Displaying Buffers,  Up: Windows
  48.  
  49. Choosing a Window for Display
  50. =============================
  51.  
  52.    This section describes the basic facility that chooses a window to
  53. display a buffer in--`display-buffer'.  All the higher-level functions
  54. and commands use this subroutine.  Here we describe how to use
  55. `display-buffer' and how to customize it.
  56.  
  57.  - Command: display-buffer BUFFER-OR-NAME &optional NOT-THIS-WINDOW
  58.      This command makes BUFFER-OR-NAME appear in some window, like
  59.      `pop-to-buffer', but it does not select that window and does not
  60.      make the buffer current.  The identity of the selected window is
  61.      unaltered by this function.
  62.  
  63.      If NOT-THIS-WINDOW is non-`nil', it means to display the specified
  64.      buffer in a window other than the selected one, even if it is
  65.      already on display in the selected window.  This can cause the
  66.      buffer to appear in two windows at once.  Otherwise, if
  67.      BUFFER-OR-NAME is already being displayed in any window, that is
  68.      good enough, so this function does nothing.
  69.  
  70.      `display-buffer' returns the window chosen to display
  71.      BUFFER-OR-NAME.
  72.  
  73.      Precisely how `display-buffer' finds or creates a window depends on
  74.      the variables described below.
  75.  
  76.    A window can be marked as "dedicated" to a particular buffer.  Then
  77. XEmacs will not automatically change which buffer appears in the
  78. window, such as `display-buffer' might normally do.
  79.  
  80.  - Function: window-dedicated-p WINDOW
  81.      This function returns WINDOW's dedicated object, usually `t' or
  82.      `nil'.
  83.  
  84.  - Function: set-window-buffer-dedicated WINDOW BUFFER
  85.      This function makes WINDOW display BUFFER and be dedicated to that
  86.      buffer.  Then XEmacs will not automatically change which buffer
  87.      appears in WINDOW.  If BUFFER is `nil', this function makes WINDOW
  88.      not be dedicated (but doesn't change which buffer appears in it
  89.      currently).
  90.  
  91.  - User Option: pop-up-windows
  92.      This variable controls whether `display-buffer' makes new windows.
  93.      If it is non-`nil' and there is only one window, then that window
  94.      is split.  If it is `nil', then `display-buffer' does not split
  95.      the single window, but uses it whole.
  96.  
  97.  - User Option: split-height-threshold
  98.      This variable determines when `display-buffer' may split a window,
  99.      if there are multiple windows.  `display-buffer' always splits the
  100.      largest window if it has at least this many lines.  If the largest
  101.      window is not this tall, it is split only if it is the sole window
  102.      and `pop-up-windows' is non-`nil'.
  103.  
  104.  - User Option: pop-up-frames
  105.      This variable controls whether `display-buffer' makes new frames.
  106.      If it is non-`nil', `display-buffer' looks for an existing window
  107.      already displaying the desired buffer, on any visible frame.  If
  108.      it finds one, it returns that window.  Otherwise it makes a new
  109.      frame.  The variables `pop-up-windows' and
  110.      `split-height-threshold' do not matter if `pop-up-frames' is
  111.      non-`nil'.
  112.  
  113.      If `pop-up-frames' is `nil', then `display-buffer' either splits a
  114.      window or reuses one.
  115.  
  116.      *Note Frames::, for more information.
  117.  
  118.  - Variable: pop-up-frame-function
  119.      This variable specifies how to make a new frame if `pop-up-frames'
  120.      is non-`nil'.
  121.  
  122.      Its value should be a function of no arguments.  When
  123.      `display-buffer' makes a new frame, it does so by calling that
  124.      function, which should return a frame.  The default value of the
  125.      variable is a function that creates a frame using properties from
  126.      `pop-up-frame-plist'.
  127.  
  128.  - Variable: pop-up-frame-plist
  129.      This variable holds a plist specifying frame properties used when
  130.      `display-buffer' makes a new frame.  *Note Frame Properties::, for
  131.      more information about frame properties.
  132.  
  133.  - Variable: special-display-buffer-names
  134.      A list of buffer names for buffers that should be displayed
  135.      specially.  If the buffer's name is in this list, `display-buffer'
  136.      handles the buffer specially.
  137.  
  138.      By default, special display means to give the buffer a dedicated
  139.      frame.
  140.  
  141.      If an element is a list, instead of a string, then the CAR of the
  142.      list is the buffer name, and the rest of the list says how to
  143.      create the frame.  There are two possibilities for the rest of the
  144.      list.  It can be a plist, specifying frame properties, or it can
  145.      contain a function and arguments to give to it.  (The function's
  146.      first argument is always the buffer to be displayed; the arguments
  147.      from the list come after that.)
  148.  
  149.  - Variable: special-display-regexps
  150.      A list of regular expressions that specify buffers that should be
  151.      displayed specially.  If the buffer's name matches any of the
  152.      regular expressions in this list, `display-buffer' handles the
  153.      buffer specially.
  154.  
  155.      By default, special display means to give the buffer a dedicated
  156.      frame.
  157.  
  158.      If an element is a list, instead of a string, then the CAR of the
  159.      list is the regular expression, and the rest of the list says how
  160.      to create the frame.  See above, under
  161.      `special-display-buffer-names'.
  162.  
  163.  - Variable: special-display-function
  164.      This variable holds the function to call to display a buffer
  165.      specially.  It receives the buffer as an argument, and should
  166.      return the window in which it is displayed.
  167.  
  168.      The default value of this variable is
  169.      `special-display-popup-frame'.
  170.  
  171.  - Function: special-display-popup-frame BUFFER
  172.      This function makes BUFFER visible in a frame of its own.  If
  173.      BUFFER is already displayed in a window in some frame, it makes
  174.      the frame visible and raises it, to use that window.  Otherwise, it
  175.      creates a frame that will be dedicated to BUFFER.
  176.  
  177.      This function uses an existing window displaying BUFFER whether or
  178.      not it is in a frame of its own; but if you set up the above
  179.      variables in your init file, before BUFFER was created, then
  180.      presumably the window was previously made by this function.
  181.  
  182.  - User Option: special-display-frame-plist
  183.      This variable holds frame properties for
  184.      `special-display-popup-frame' to use when it creates a frame.
  185.  
  186.  - Variable: same-window-buffer-names
  187.      A list of buffer names for buffers that should be displayed in the
  188.      selected window.  If the buffer's name is in this list,
  189.      `display-buffer' handles the buffer by switching to it in the
  190.      selected window.
  191.  
  192.  - Variable: same-window-regexps
  193.      A list of regular expressions that specify buffers that should be
  194.      displayed in the selected window.  If the buffer's name matches
  195.      any of the regular expressions in this list, `display-buffer'
  196.      handles the buffer by switching to it in the selected window.
  197.  
  198.  - Variable: display-buffer-function
  199.      This variable is the most flexible way to customize the behavior of
  200.      `display-buffer'.  If it is non-`nil', it should be a function
  201.      that `display-buffer' calls to do the work.  The function should
  202.      accept two arguments, the same two arguments that `display-buffer'
  203.      received.  It should choose or create a window, display the
  204.      specified buffer, and then return the window.
  205.  
  206.      This hook takes precedence over all the other options and hooks
  207.      described above.
  208.  
  209.    A window can be marked as "dedicated" to its buffer.  Then
  210. `display-buffer' does not try to use that window.
  211.  
  212.  - Function: window-dedicated-p WINDOW
  213.      This function returns `t' if WINDOW is marked as dedicated;
  214.      otherwise `nil'.
  215.  
  216.  - Function: set-window-dedicated-p WINDOW FLAG
  217.      This function marks WINDOW as dedicated if FLAG is non-`nil', and
  218.      nondedicated otherwise.
  219.  
  220. 
  221. File: lispref.info,  Node: Window Point,  Next: Window Start,  Prev: Choosing Window,  Up: Windows
  222.  
  223. Windows and Point
  224. =================
  225.  
  226.    Each window has its own value of point, independent of the value of
  227. point in other windows displaying the same buffer.  This makes it useful
  228. to have multiple windows showing one buffer.
  229.  
  230.    * The window point is established when a window is first created; it
  231.      is initialized from the buffer's point, or from the window point
  232.      of another window opened on the buffer if such a window exists.
  233.  
  234.    * Selecting a window sets the value of point in its buffer to the
  235.      window's value of point.  Conversely, deselecting a window sets
  236.      the window's value of point from that of the buffer.  Thus, when
  237.      you switch between windows that display a given buffer, the point
  238.      value for the selected window is in effect in the buffer, while
  239.      the point values for the other windows are stored in those windows.
  240.  
  241.    * As long as the selected window displays the current buffer, the
  242.      window's point and the buffer's point always move together; they
  243.      remain equal.
  244.  
  245.    * *Note Positions::, for more details on buffer positions.
  246.  
  247.    As far as the user is concerned, point is where the cursor is, and
  248. when the user switches to another buffer, the cursor jumps to the
  249. position of point in that buffer.
  250.  
  251.  - Function: window-point WINDOW
  252.      This function returns the current position of point in WINDOW.
  253.      For a nonselected window, this is the value point would have (in
  254.      that window's buffer) if that window were selected.
  255.  
  256.      When WINDOW is the selected window and its buffer is also the
  257.      current buffer, the value returned is the same as point in that
  258.      buffer.
  259.  
  260.      Strictly speaking, it would be more correct to return the
  261.      "top-level" value of point, outside of any `save-excursion' forms.
  262.      But that value is hard to find.
  263.  
  264.  - Function: set-window-point WINDOW POSITION
  265.      This function positions point in WINDOW at position POSITION in
  266.      WINDOW's buffer.
  267.  
  268. 
  269. File: lispref.info,  Node: Window Start,  Next: Vertical Scrolling,  Prev: Window Point,  Up: Windows
  270.  
  271. The Window Start Position
  272. =========================
  273.  
  274.    Each window contains a marker used to keep track of a buffer position
  275. that specifies where in the buffer display should start.  This position
  276. is called the "display-start" position of the window (or just the
  277. "start").  The character after this position is the one that appears at
  278. the upper left corner of the window.  It is usually, but not
  279. inevitably, at the beginning of a text line.
  280.  
  281.  - Function: window-start &optional WINDOW
  282.      This function returns the display-start position of window WINDOW.
  283.      If WINDOW is `nil', the selected window is used.  For example,
  284.  
  285.           (window-start)
  286.                => 7058
  287.  
  288.      When you create a window, or display a different buffer in it, the
  289.      display-start position is set to a display-start position recently
  290.      used for the same buffer, or 1 if the buffer doesn't have any.
  291.  
  292.      For a realistic example, see the description of `count-lines' in
  293.      *Note Text Lines::.
  294.  
  295.  - Function: window-end &optional WINDOW
  296.      This function returns the position of the end of the display in
  297.      window WINDOW.  If WINDOW is `nil', the selected window is used.
  298.  
  299.      Simply changing the buffer text or moving point does not update the
  300.      value that `window-end' returns.  The value is updated only when
  301.      Emacs redisplays and redisplay actually finishes.
  302.  
  303.      If the last redisplay of WINDOW was preempted, and did not finish,
  304.      Emacs does not know the position of the end of display in that
  305.      window.  In that case, this function returns a value that is not
  306.      correct.  In a future version, `window-end' will return `nil' in
  307.      that case.
  308.  
  309.  - Function: set-window-start WINDOW POSITION &optional NOFORCE
  310.      This function sets the display-start position of WINDOW to
  311.      POSITION in WINDOW's buffer.  It returns POSITION.
  312.  
  313.      The display routines insist that the position of point be visible
  314.      when a buffer is displayed.  Normally, they change the
  315.      display-start position (that is, scroll the window) whenever
  316.      necessary to make point visible.  However, if you specify the
  317.      start position with this function using `nil' for NOFORCE, it
  318.      means you want display to start at POSITION even if that would put
  319.      the location of point off the screen.  If this does place point
  320.      off screen, the display routines move point to the left margin on
  321.      the middle line in the window.
  322.  
  323.      For example, if point is 1 and you set the start of the window
  324.      to 2, then point would be "above" the top of the window.  The
  325.      display routines will automatically move point if it is still 1
  326.      when redisplay occurs.  Here is an example:
  327.  
  328.           ;; Here is what `foo' looks like before executing
  329.           ;;   the `set-window-start' expression.
  330.           
  331.           ---------- Buffer: foo ----------
  332.           -!-This is the contents of buffer foo.
  333.           2
  334.           3
  335.           4
  336.           5
  337.           6
  338.           ---------- Buffer: foo ----------
  339.           
  340.           (set-window-start
  341.            (selected-window)
  342.            (1+ (window-start)))
  343.           => 2
  344.           
  345.           ;; Here is what `foo' looks like after executing
  346.           ;;   the `set-window-start' expression.
  347.           ---------- Buffer: foo ----------
  348.           his is the contents of buffer foo.
  349.           2
  350.           3
  351.           -!-4
  352.           5
  353.           6
  354.           ---------- Buffer: foo ----------
  355.  
  356.      If NOFORCE is non-`nil', and POSITION would place point off screen
  357.      at the next redisplay, then redisplay computes a new window-start
  358.      position that works well with point, and thus POSITION is not used.
  359.  
  360.  - Function: pos-visible-in-window-p &optional POSITION WINDOW
  361.      This function returns `t' if POSITION is within the range of text
  362.      currently visible on the screen in WINDOW.  It returns `nil' if
  363.      POSITION is scrolled vertically out of view.  The argument
  364.      POSITION defaults to the current position of point; WINDOW, to the
  365.      selected window.  Here is an example:
  366.  
  367.           (or (pos-visible-in-window-p
  368.                (point) (selected-window))
  369.               (recenter 0))
  370.  
  371.      The `pos-visible-in-window-p' function considers only vertical
  372.      scrolling.  If POSITION is out of view only because WINDOW has
  373.      been scrolled horizontally, `pos-visible-in-window-p' returns `t'.
  374.      *Note Horizontal Scrolling::.
  375.  
  376. 
  377. File: lispref.info,  Node: Vertical Scrolling,  Next: Horizontal Scrolling,  Prev: Window Start,  Up: Windows
  378.  
  379. Vertical Scrolling
  380. ==================
  381.  
  382.    Vertical scrolling means moving the text up or down in a window.  It
  383. works by changing the value of the window's display-start location.  It
  384. may also change the value of `window-point' to keep it on the screen.
  385.  
  386.    In the commands `scroll-up' and `scroll-down', the directions "up"
  387. and "down" refer to the motion of the text in the buffer at which you
  388. are looking through the window.  Imagine that the text is written on a
  389. long roll of paper and that the scrolling commands move the paper up
  390. and down.  Thus, if you are looking at text in the middle of a buffer
  391. and repeatedly call `scroll-down', you will eventually see the
  392. beginning of the buffer.
  393.  
  394.    Some people have urged that the opposite convention be used: they
  395. imagine that the window moves over text that remains in place.  Then
  396. "down" commands would take you to the end of the buffer.  This view is
  397. more consistent with the actual relationship between windows and the
  398. text in the buffer, but it is less like what the user sees.  The
  399. position of a window on the terminal does not move, and short scrolling
  400. commands clearly move the text up or down on the screen.  We have chosen
  401. names that fit the user's point of view.
  402.  
  403.    The scrolling functions (aside from `scroll-other-window') have
  404. unpredictable results if the current buffer is different from the buffer
  405. that is displayed in the selected window.  *Note Current Buffer::.
  406.  
  407.  - Command: scroll-up &optional COUNT
  408.      This function scrolls the text in the selected window upward COUNT
  409.      lines.  If COUNT is negative, scrolling is actually downward.
  410.  
  411.      If COUNT is `nil' (or omitted), then the length of scroll is
  412.      `next-screen-context-lines' lines less than the usable height of
  413.      the window (not counting its modeline).
  414.  
  415.      `scroll-up' returns `nil'.
  416.  
  417.  - Command: scroll-down &optional COUNT
  418.      This function scrolls the text in the selected window downward
  419.      COUNT lines.  If COUNT is negative, scrolling is actually upward.
  420.  
  421.      If COUNT is omitted or `nil', then the length of the scroll is
  422.      `next-screen-context-lines' lines less than the usable height of
  423.      the window (not counting its mode line).
  424.  
  425.      `scroll-down' returns `nil'.
  426.  
  427.  - Command: scroll-other-window &optional COUNT
  428.      This function scrolls the text in another window upward COUNT
  429.      lines.  Negative values of COUNT, or `nil', are handled as in
  430.      `scroll-up'.
  431.  
  432.      You can specify a buffer to scroll with the variable
  433.      `other-window-scroll-buffer'.  When the selected window is the
  434.      minibuffer, the next window is normally the one at the top left
  435.      corner.  You can specify a different window to scroll with the
  436.      variable `minibuffer-scroll-window'.  This variable has no effect
  437.      when any other window is selected.  *Note Minibuffer Misc::.
  438.  
  439.      When the minibuffer is active, it is the next window if the
  440.      selected window is the one at the bottom right corner.  In this
  441.      case, `scroll-other-window' attempts to scroll the minibuffer.  If
  442.      the minibuffer contains just one line, it has nowhere to scroll
  443.      to, so the line reappears after the echo area momentarily displays
  444.      the message "Beginning of buffer".
  445.  
  446.  - Variable: other-window-scroll-buffer
  447.      If this variable is non-`nil', it tells `scroll-other-window'
  448.      which buffer to scroll.
  449.  
  450.  - User Option: scroll-step
  451.      This variable controls how scrolling is done automatically when
  452.      point moves off the screen.  If the value is zero, then redisplay
  453.      scrolls the text to center point vertically in the window.  If the
  454.      value is a positive integer N, then redisplay brings point back on
  455.      screen by scrolling N lines in either direction, if possible;
  456.      otherwise, it centers point.  The default value is zero.
  457.  
  458.  - User Option: next-screen-context-lines
  459.      The value of this variable is the number of lines of continuity to
  460.      retain when scrolling by full screens.  For example, `scroll-up'
  461.      with an argument of `nil' scrolls so that this many lines at the
  462.      bottom of the window appear instead at the top.  The default value
  463.      is `2'.
  464.  
  465.  - Command: recenter &optional COUNT
  466.      This function scrolls the selected window to put the text where
  467.      point is located at a specified vertical position within the
  468.      window.
  469.  
  470.      If COUNT is a nonnegative number, it puts the line containing
  471.      point COUNT lines down from the top of the window.  If COUNT is a
  472.      negative number, then it counts upward from the bottom of the
  473.      window, so that -1 stands for the last usable line in the window.
  474.      If COUNT is a non-`nil' list, then it stands for the line in the
  475.      middle of the window.
  476.  
  477.      If COUNT is `nil', `recenter' puts the line containing point in
  478.      the middle of the window, then clears and redisplays the entire
  479.      selected frame.
  480.  
  481.      When `recenter' is called interactively, COUNT is the raw prefix
  482.      argument.  Thus, typing `C-u' as the prefix sets the COUNT to a
  483.      non-`nil' list, while typing `C-u 4' sets COUNT to 4, which
  484.      positions the current line four lines from the top.
  485.  
  486.      With an argument of zero, `recenter' positions the current line at
  487.      the top of the window.  This action is so handy that some people
  488.      make a separate key binding to do this.  For example,
  489.  
  490.           (defun line-to-top-of-window ()
  491.             "Scroll current line to top of window.
  492.           Replaces three keystroke sequence C-u 0 C-l."
  493.             (interactive)
  494.             (recenter 0))
  495.           
  496.           (global-set-key [kp-multiply] 'line-to-top-of-window)
  497.  
  498. 
  499. File: lispref.info,  Node: Horizontal Scrolling,  Next: Size of Window,  Prev: Vertical Scrolling,  Up: Windows
  500.  
  501. Horizontal Scrolling
  502. ====================
  503.  
  504.    Because we read English first from top to bottom and second from left
  505. to right, horizontal scrolling is not like vertical scrolling.  Vertical
  506. scrolling involves selection of a contiguous portion of text to display.
  507. Horizontal scrolling causes part of each line to go off screen.  The
  508. amount of horizontal scrolling is therefore specified as a number of
  509. columns rather than as a position in the buffer.  It has nothing to do
  510. with the display-start position returned by `window-start'.
  511.  
  512.    Usually, no horizontal scrolling is in effect; then the leftmost
  513. column is at the left edge of the window.  In this state, scrolling to
  514. the right is meaningless, since there is no data to the left of the
  515. screen to be revealed by it; so this is not allowed.  Scrolling to the
  516. left is allowed; it scrolls the first columns of text off the edge of
  517. the window and can reveal additional columns on the right that were
  518. truncated before.  Once a window has a nonzero amount of leftward
  519. horizontal scrolling, you can scroll it back to the right, but only so
  520. far as to reduce the net horizontal scroll to zero.  There is no limit
  521. to how far left you can scroll, but eventually all the text will
  522. disappear off the left edge.
  523.  
  524.  - Command: scroll-left COUNT
  525.      This function scrolls the selected window COUNT columns to the
  526.      left (or to the right if COUNT is negative).  The return value is
  527.      the total amount of leftward horizontal scrolling in effect after
  528.      the change--just like the value returned by `window-hscroll'
  529.      (below).
  530.  
  531.  - Command: scroll-right COUNT
  532.      This function scrolls the selected window COUNT columns to the
  533.      right (or to the left if COUNT is negative).  The return value is
  534.      the total amount of leftward horizontal scrolling in effect after
  535.      the change--just like the value returned by `window-hscroll'
  536.      (below).
  537.  
  538.      Once you scroll a window as far right as it can go, back to its
  539.      normal position where the total leftward scrolling is zero,
  540.      attempts to scroll any farther right have no effect.
  541.  
  542.  - Function: window-hscroll &optional WINDOW
  543.      This function returns the total leftward horizontal scrolling of
  544.      WINDOW--the number of columns by which the text in WINDOW is
  545.      scrolled left past the left margin.
  546.  
  547.      The value is never negative.  It is zero when no horizontal
  548.      scrolling has been done in WINDOW (which is usually the case).
  549.  
  550.      If WINDOW is `nil', the selected window is used.
  551.  
  552.           (window-hscroll)
  553.                => 0
  554.           (scroll-left 5)
  555.                => 5
  556.           (window-hscroll)
  557.                => 5
  558.  
  559.  - Function: set-window-hscroll WINDOW COLUMNS
  560.      This function sets the number of columns from the left margin that
  561.      WINDOW is scrolled to the value of COLUMNS.  The argument COLUMNS
  562.      should be zero or positive; if not, it is taken as zero.
  563.  
  564.      The value returned is COLUMNS.
  565.  
  566.           (set-window-hscroll (selected-window) 10)
  567.                => 10
  568.  
  569.    Here is how you can determine whether a given position POSITION is
  570. off the screen due to horizontal scrolling:
  571.  
  572.      (defun hscroll-on-screen (window position)
  573.        (save-excursion
  574.          (goto-char position)
  575.          (and
  576.           (>= (- (current-column) (window-hscroll window)) 0)
  577.           (< (- (current-column) (window-hscroll window))
  578.              (window-width window)))))
  579.  
  580. 
  581. File: lispref.info,  Node: Size of Window,  Next: Position of Window,  Prev: Horizontal Scrolling,  Up: Windows
  582.  
  583. The Size of a Window
  584. ====================
  585.  
  586.    An Emacs window is rectangular, and its size information consists of
  587. the height (in lines or pixels) and the width (in character positions
  588. or pixels).  The modeline is included in the height.  The pixel width
  589. and height values include scrollbars and margins, while the
  590. line/character-position values do not.
  591.  
  592.    Note that the height in lines, and the width in characters, are
  593. determined by dividing the corresponding pixel value by the height or
  594. width of the default font in that window (if this is a variable-width
  595. font, the average width is used).  The resulting values may or may not
  596. represent the actual number of lines in the window, or the actual number
  597. of character positions in any particular line, esp. if there are pixmaps
  598. or various different fonts in the window.
  599.  
  600.    The following functions return size information about a window:
  601.  
  602.  - Function: window-height &optional WINDOW
  603.      This function returns the number of lines in WINDOW, including its
  604.      modeline but not including the horizontal scrollbar, if any (this
  605.      is different from `window-pixel-height').  If WINDOW is `nil', the
  606.      function uses the selected window.
  607.  
  608.           (window-height)
  609.                => 40
  610.           (split-window-vertically)
  611.                => #<window on "windows.texi" 0x679b>
  612.           (window-height)
  613.                => 20
  614.  
  615.  - Function: window-width &optional WINDOW
  616.      This function returns the number of columns in WINDOW, not
  617.      including any left margin, right margin, or vertical scrollbar
  618.      (this is different from `window-pixel-width').  If WINDOW is
  619.      `nil', the function uses the selected window.
  620.  
  621.           (window-width)
  622.                => 80
  623.           (window-height)
  624.                => 40
  625.           (split-window-horizontally)
  626.                => #<window on "windows.texi" 0x7538>
  627.           (window-width)
  628.                => 39
  629.  
  630.    Note that after splitting the window into two side-by-side windows,
  631. the width of each window is less the half the width of the original
  632. window because a vertical scrollbar appeared between the windows,
  633. occupying two columns worth of space.  Also, the height shrunk by one
  634. because horizontal scrollbars appeared that weren't there before.
  635. (Horizontal scrollbars appear only when lines are truncated, not when
  636. they wrap.  This is usually the case for horizontally split windows but
  637. not for full-frame windows.  You can change this using the variables
  638. `truncate-lines' and `truncate-partial-width-windows'.)
  639.  
  640.  - Function: window-pixel-height &optional WINDOW
  641.      This function returns the height of WINDOW in pixels, including
  642.      its modeline and horizontal scrollbar, if any.  If WINDOW is
  643.      `nil', the function uses the selected window.
  644.  
  645.           (window-pixel-height)
  646.                => 600
  647.           (split-window-vertically)
  648.                => #<window on "windows.texi" 0x68a6>
  649.           (window-pixel-height)
  650.                => 300
  651.  
  652.  - Function: window-pixel-width &optional WINDOW
  653.      This function returns the width of WINDOW in pixels, including any
  654.      left margin, right margin, or vertical scrollbar that may be
  655.      displayed alongside it.  If WINDOW is `nil', the function uses the
  656.      selected window.
  657.  
  658.           (window-pixel-width)
  659.                => 735
  660.           (window-pixel-height)
  661.                => 600
  662.           (split-window-horizontally)
  663.                => #<window on "windows.texi" 0x7538>
  664.           (window-pixel-width)
  665.                => 367
  666.           (window-pixel-height)
  667.                => 600
  668.  
  669. 
  670. File: lispref.info,  Node: Position of Window,  Next: Resizing Windows,  Prev: Size of Window,  Up: Windows
  671.  
  672. The Position of a Window
  673. ========================
  674.  
  675.    XEmacs provides functions to determine the absolute location of
  676. windows within a frame, and the relative location of a window in
  677. comparison to other windows in the same frame.
  678.  
  679.  - Function: window-pixel-edges &optional WINDOW
  680.      This function returns a list of the pixel edge coordinates of
  681.      WINDOW.  If WINDOW is `nil', the selected window is used.
  682.  
  683.      The order of the list is `(LEFT TOP RIGHT BOTTOM)', all elements
  684.      relative to 0, 0 at the top left corner of the frame.  The element
  685.      RIGHT of the value is one more than the rightmost pixel used by
  686.      WINDOW (including any left margin, right margin, or vertical
  687.      scrollbar displayed alongside it), and BOTTOM is one more than the
  688.      bottommost pixel used by WINDOW (including any modeline or
  689.      horizontal scrollbar displayed above or below it).  The frame area
  690.      does not include any frame menubars or toolbars that may be
  691.      displayed; thus, for example, if there is only one window on the
  692.      frame, the values for LEFT and TOP will always be 0.
  693.  
  694.      If WINDOW is at the upper left corner of its frame, RIGHT and
  695.      BOTTOM are the same as the values returned by
  696.      `(window-pixel-width)' and `(window-pixel-height)' respectively,
  697.      and TOP and BOTTOM are zero.
  698.  
  699.    There is no longer a function `window-edges' because it does not
  700. make sense in a world with variable-width and variable-height lines, as
  701. are allowed in XEmacs.
  702.  
  703.  - Function: window-highest-p WINDOW
  704.      This function returns non-`nil' if WINDOW is along the top of its
  705.      frame.
  706.  
  707.  - Function: window-lowest-p WINDOW
  708.      This function returns non-`nil' if WINDOW is along the bottom of
  709.      its frame.
  710.  
  711. 
  712. File: lispref.info,  Node: Resizing Windows,  Next: Window Configurations,  Prev: Position of Window,  Up: Windows
  713.  
  714. Changing the Size of a Window
  715. =============================
  716.  
  717.    The window size functions fall into two classes: high-level commands
  718. that change the size of windows and low-level functions that access
  719. window size.  XEmacs does not permit overlapping windows or gaps between
  720. windows, so resizing one window affects other windows.
  721.  
  722.  - Command: enlarge-window SIZE &optional HORIZONTAL
  723.      This function makes the selected window SIZE lines taller,
  724.      stealing lines from neighboring windows.  It takes the lines from
  725.      one window at a time until that window is used up, then takes from
  726.      another.  If a window from which lines are stolen shrinks below
  727.      `window-min-height' lines, that window disappears.
  728.  
  729.      If HORIZONTAL is non-`nil', this function makes WINDOW wider by
  730.      SIZE columns, stealing columns instead of lines.  If a window from
  731.      which columns are stolen shrinks below `window-min-width' columns,
  732.      that window disappears.
  733.  
  734.      If the requested size would exceed that of the window's frame,
  735.      then the function makes the window occupy the entire height (or
  736.      width) of the frame.
  737.  
  738.      If SIZE is negative, this function shrinks the window by -SIZE
  739.      lines or columns.  If that makes the window smaller than the
  740.      minimum size (`window-min-height' and `window-min-width'),
  741.      `enlarge-window' deletes the window.
  742.  
  743.      `enlarge-window' returns `nil'.
  744.  
  745.  - Command: enlarge-window-horizontally COLUMNS
  746.      This function makes the selected window COLUMNS wider.  It could
  747.      be defined as follows:
  748.  
  749.           (defun enlarge-window-horizontally (columns)
  750.             (enlarge-window columns t))
  751.  
  752.  - Command: shrink-window SIZE &optional HORIZONTAL
  753.      This function is like `enlarge-window' but negates the argument
  754.      SIZE, making the selected window smaller by giving lines (or
  755.      columns) to the other windows.  If the window shrinks below
  756.      `window-min-height' or `window-min-width', then it disappears.
  757.  
  758.      If SIZE is negative, the window is enlarged by -SIZE lines or
  759.      columns.
  760.  
  761.  - Command: shrink-window-horizontally COLUMNS
  762.      This function makes the selected window COLUMNS narrower.  It
  763.      could be defined as follows:
  764.  
  765.           (defun shrink-window-horizontally (columns)
  766.             (shrink-window columns t))
  767.  
  768.    The following two variables constrain the window-size-changing
  769. functions to a minimum height and width.
  770.  
  771.  - User Option: window-min-height
  772.      The value of this variable determines how short a window may become
  773.      before it is automatically deleted.  Making a window smaller than
  774.      `window-min-height' automatically deletes it, and no window may be
  775.      created shorter than this.  The absolute minimum height is two
  776.      (allowing one line for the mode line, and one line for the buffer
  777.      display).  Actions that change window sizes reset this variable to
  778.      two if it is less than two.  The default value is 4.
  779.  
  780.  - User Option: window-min-width
  781.      The value of this variable determines how narrow a window may
  782.      become before it automatically deleted.  Making a window smaller
  783.      than `window-min-width' automatically deletes it, and no window
  784.      may be created narrower than this.  The absolute minimum width is
  785.      one; any value below that is ignored.  The default value is 10.
  786.  
  787.  - Variable: window-size-change-functions
  788.      This variable holds a list of functions to be called if the size
  789.      of any window changes for any reason.  The functions are called
  790.      just once per redisplay, and just once for each frame on which
  791.      size changes have occurred.
  792.  
  793.      Each function receives the frame as its sole argument.  There is no
  794.      direct way to find out which windows changed size, or precisely
  795.      how; however, if your size-change function keeps track, after each
  796.      change, of the windows that interest you, you can figure out what
  797.      has changed by comparing the old size data with the new.
  798.  
  799.      Creating or deleting windows counts as a size change, and therefore
  800.      causes these functions to be called.  Changing the frame size also
  801.      counts, because it changes the sizes of the existing windows.
  802.  
  803.      It is not a good idea to use `save-window-excursion' in these
  804.      functions, because that always counts as a size change, and it
  805.      would cause these functions to be called over and over.  In most
  806.      cases, `save-selected-window' is what you need here.
  807.  
  808. 
  809. File: lispref.info,  Node: Window Configurations,  Prev: Resizing Windows,  Up: Windows
  810.  
  811. Window Configurations
  812. =====================
  813.  
  814.    A "window configuration" records the entire layout of a frame--all
  815. windows, their sizes, which buffers they contain, what part of each
  816. buffer is displayed, and the values of point and the mark.  You can
  817. bring back an entire previous layout by restoring a window
  818. configuration previously saved.
  819.  
  820.    If you want to record all frames instead of just one, use a frame
  821. configuration instead of a window configuration.  *Note Frame
  822. Configurations::.
  823.  
  824.  - Function: current-window-configuration
  825.      This function returns a new object representing XEmacs's current
  826.      window configuration, namely the number of windows, their sizes
  827.      and current buffers, which window is the selected window, and for
  828.      each window the displayed buffer, the display-start position, and
  829.      the positions of point and the mark.  An exception is made for
  830.      point in the current buffer, whose value is not saved.
  831.  
  832.  - Function: set-window-configuration CONFIGURATION
  833.      This function restores the configuration of XEmacs's windows and
  834.      buffers to the state specified by CONFIGURATION.  The argument
  835.      CONFIGURATION must be a value that was previously returned by
  836.      `current-window-configuration'.
  837.  
  838.      This function always counts as a window size change and triggers
  839.      execution of the `window-size-change-functions'.  (It doesn't know
  840.      how to tell whether the new configuration actually differs from
  841.      the old one.)
  842.  
  843.      Here is a way of using this function to get the same effect as
  844.      `save-window-excursion':
  845.  
  846.           (let ((config (current-window-configuration)))
  847.             (unwind-protect
  848.                 (progn (split-window-vertically nil)
  849.                        ...)
  850.               (set-window-configuration config)))
  851.  
  852.  - Special Form: save-window-excursion FORMS...
  853.      This special form records the window configuration, executes FORMS
  854.      in sequence, then restores the earlier window configuration.  The
  855.      window configuration includes the value of point and the portion
  856.      of the buffer that is visible.  It also includes the choice of
  857.      selected window.  However, it does not include the value of point
  858.      in the current buffer; use `save-excursion' if you wish to
  859.      preserve that.
  860.  
  861.      Don't use this construct when `save-selected-window' is all you
  862.      need.
  863.  
  864.      Exit from `save-window-excursion' always triggers execution of the
  865.      `window-size-change-functions'.  (It doesn't know how to tell
  866.      whether the restored configuration actually differs from the one in
  867.      effect at the end of the FORMS.)
  868.  
  869.      The return value is the value of the final form in FORMS.  For
  870.      example:
  871.  
  872.           (split-window)
  873.                => #<window 25 on control.texi>
  874.           (setq w (selected-window))
  875.                => #<window 19 on control.texi>
  876.           (save-window-excursion
  877.             (delete-other-windows w)
  878.             (switch-to-buffer "foo")
  879.             'do-something)
  880.                => do-something
  881.                ;; The frame is now split again.
  882.  
  883.  - Function: window-configuration-p OBJECT
  884.      This function returns `t' if OBJECT is a window configuration.
  885.  
  886.    Primitives to look inside of window configurations would make sense,
  887. but none are implemented.  It is not clear they are useful enough to be
  888. worth implementing.
  889.  
  890. 
  891. File: lispref.info,  Node: Frames,  Next: Consoles and Devices,  Prev: Windows,  Up: Top
  892.  
  893. Frames
  894. ******
  895.  
  896.    A FRAME is a rectangle on the screen that contains one or more
  897. XEmacs windows.  A frame initially contains a single main window (plus
  898. perhaps a minibuffer window), which you can subdivide vertically or
  899. horizontally into smaller windows.
  900.  
  901.    When XEmacs runs on a text-only terminal, it starts with one "TTY
  902. frame".  If you create additional ones, XEmacs displays one and only
  903. one at any given time--on the terminal screen, of course.
  904.  
  905.    When XEmacs communicates directly with an X server, it does not have
  906. a TTY frame; instead, it starts with a single "X window frame".  It can
  907. display multiple X window frames at the same time, each in its own X
  908. window.
  909.  
  910.  - Function: framep OBJECT
  911.      This predicate returns `t' if OBJECT is a frame, and `nil'
  912.      otherwise.
  913.  
  914. * Menu:
  915.  
  916. * Creating Frames::        Creating additional frames.
  917. * Frame Properties::        Controlling frame size, position, font, etc.
  918. * Frame Titles::                Automatic updating of frame titles.
  919. * Deleting Frames::        Frames last until explicitly deleted.
  920. * Finding All Frames::        How to examine all existing frames.
  921. * Frames and Windows::        A frame contains windows;
  922.                   display of text always works through windows.
  923. * Minibuffers and Frames::    How a frame finds the minibuffer to use.
  924. * Input Focus::            Specifying the selected frame.
  925. * Visibility of Frames::    Frames may be visible or invisible, or icons.
  926. * Raising and Lowering::    Raising a frame makes it hide other X windows;
  927.                   lowering it makes the others hide them.
  928. * Frame Configurations::    Saving the state of all frames.
  929. * Frame Hooks::                 Hooks for customizing frame behavior.
  930.  
  931.    *Note Display::, for related information.
  932.  
  933. 
  934. File: lispref.info,  Node: Creating Frames,  Next: Frame Properties,  Up: Frames
  935.  
  936. Creating Frames
  937. ===============
  938.  
  939.    To create a new frame, call the function `make-frame'.
  940.  
  941.  - Function: make-frame &optional PROPS DEVICE
  942.      This function creates a new frame on DEVICE, if DEVICE permits
  943.      creation of frames.  (An X server does; an ordinary terminal does
  944.      not (yet).)  DEVICE defaults to the selected device if omitted.
  945.      *Note Consoles and Devices::.
  946.  
  947.      The argument PROPS is a property list (a list of alternating
  948.      keyword-value specifications) of properties for the new frame. (An
  949.      alist is accepted for backward compatibility but should not be
  950.      passed in.) Any properties not mentioned in PROPS default
  951.      according to the value of the variable `default-frame-plist'.  For
  952.      X devices, properties not specified in `default-frame-plist'
  953.      default in turn from `default-x-frame-plist' and, if not specified
  954.      there, from the X resources.  For TTY devices,
  955.      `default-tty-frame-plist' is consulted as well as
  956.      `default-frame-plist'.
  957.  
  958.      The set of possible properties depends in principle on what kind of
  959.      window system XEmacs uses to display its frames.  *Note X Frame
  960.      Properties::, for documentation of individual properties you can
  961.      specify when creating an X window frame.
  962.  
  963. 
  964. File: lispref.info,  Node: Frame Properties,  Next: Frame Titles,  Prev: Creating Frames,  Up: Frames
  965.  
  966. Frame Properties
  967. ================
  968.  
  969.    A frame has many properties that control its appearance and behavior.
  970. Just what properties a frame has depends on which display mechanism it
  971. uses.
  972.  
  973.    Frame properties exist for the sake of window systems.  A terminal
  974. frame has few properties, mostly for compatibility's sake; only the
  975. height, width and `buffer-predicate' properties really do something.
  976.  
  977. * Menu:
  978.  
  979. * Property Access::    How to change a frame's properties.
  980. * Initial Properties::    Specifying frame properties when you make a frame.
  981. * X Frame Properties::    List of frame properties.
  982. * Size and Position::    Changing the size and position of a frame.
  983. * Frame Name::        The name of a frame (as opposed to its title).
  984.  
  985. 
  986. File: lispref.info,  Node: Property Access,  Next: Initial Properties,  Up: Frame Properties
  987.  
  988. Access to Frame Properties
  989. --------------------------
  990.  
  991.    These functions let you read and change the properties of a frame.
  992.  
  993.  - Function: frame-properties &optional FRAME
  994.      This function returns a plist listing all the properties of FRAME
  995.      and their values.
  996.  
  997.  - Function: frame-property FRAME PROPERTY &optional DEFAULT
  998.      This function returns FRAME's value for the property PROPERTY.
  999.  
  1000.  - Function: set-frame-properties FRAME PLIST
  1001.      This function alters the properties of frame FRAME based on the
  1002.      elements of property list PLIST.  If you don't mention a property
  1003.      in PLIST, its value doesn't change.
  1004.  
  1005.  - Function: set-frame-property FRAME PROP VAL
  1006.      This function sets the property PROP of frame FRAME to the value
  1007.      VAL.
  1008.  
  1009. 
  1010. File: lispref.info,  Node: Initial Properties,  Next: X Frame Properties,  Prev: Property Access,  Up: Frame Properties
  1011.  
  1012. Initial Frame Properties
  1013. ------------------------
  1014.  
  1015.    You can specify the properties for the initial startup frame by
  1016. setting `initial-frame-plist' in your `.emacs' file.
  1017.  
  1018.  - Variable: initial-frame-plist
  1019.      This variable's value is a plist of alternating property-value
  1020.      pairs used when creating the initial X window frame.
  1021.  
  1022.      XEmacs creates the initial frame before it reads your `~/.emacs'
  1023.      file.  After reading that file, XEmacs checks
  1024.      `initial-frame-plist', and applies the property settings in the
  1025.      altered value to the already created initial frame.
  1026.  
  1027.      If these settings affect the frame geometry and appearance, you'll
  1028.      see the frame appear with the wrong ones and then change to the
  1029.      specified ones.  If that bothers you, you can specify the same
  1030.      geometry and appearance with X resources; those do take affect
  1031.      before the frame is created.  *Note X Resources: (emacs)Resources
  1032.      X.
  1033.  
  1034.      X resource settings typically apply to all frames.  If you want to
  1035.      specify some X resources solely for the sake of the initial frame,
  1036.      and you don't want them to apply to subsequent frames, here's how
  1037.      to achieve this: specify properties in `default-frame-plist' to
  1038.      override the X resources for subsequent frames; then, to prevent
  1039.      these from affecting the initial frame, specify the same
  1040.      properties in `initial-frame-plist' with values that match the X
  1041.      resources.
  1042.  
  1043.    If these properties specify a separate minibuffer-only frame via a
  1044. `minibuffer' property of `nil', and you have not yet created one,
  1045. XEmacs creates one for you.
  1046.  
  1047.  - Variable: minibuffer-frame-plist
  1048.      This variable's value is a plist of properties used when creating
  1049.      an initial minibuffer-only frame--if such a frame is needed,
  1050.      according to the properties for the main initial frame.
  1051.  
  1052.  - Variable: default-frame-plist
  1053.      This is a plist specifying default values of frame properties for
  1054.      subsequent XEmacs frames (not the initial ones).
  1055.  
  1056.    See also `special-display-frame-plist', in *Note Choosing Window::.
  1057.  
  1058.    If you use options that specify window appearance when you invoke
  1059. XEmacs, they take effect by adding elements to `default-frame-plist'.
  1060. One exception is `-geometry', which adds the specified position to
  1061. `initial-frame-plist' instead.  *Note Command Arguments: (emacs)Command
  1062. Arguments.
  1063.  
  1064. 
  1065. File: lispref.info,  Node: X Frame Properties,  Next: Size and Position,  Prev: Initial Properties,  Up: Frame Properties
  1066.  
  1067. X Window Frame Properties
  1068. -------------------------
  1069.  
  1070.    Just what properties a frame has depends on what display mechanism it
  1071. uses.  Here is a table of the properties of an X window frame; of these,
  1072. `name', `height', `width', and `buffer-predicate' provide meaningful
  1073. information in non-X frames.
  1074.  
  1075. `name'
  1076.      The name of the frame.  Most window managers display the frame's
  1077.      name in the frame's border, at the top of the frame.  If you don't
  1078.      specify a name, and you have more than one frame, XEmacs sets the
  1079.      frame name based on the buffer displayed in the frame's selected
  1080.      window.
  1081.  
  1082.      If you specify the frame name explicitly when you create the
  1083.      frame, the name is also used (instead of the name of the XEmacs
  1084.      executable) when looking up X resources for the frame.
  1085.  
  1086. `display'
  1087.      The display on which to open this frame.  It should be a string of
  1088.      the form `"HOST:DPY.SCREEN"', just like the `DISPLAY' environment
  1089.      variable.
  1090.  
  1091. `left'
  1092.      The screen position of the left edge, in pixels, with respect to
  1093.      the left edge of the screen.  The value may be a positive number
  1094.      POS, or a list of the form `(+ POS)' which permits specifying a
  1095.      negative POS value.
  1096.  
  1097.      A negative number -POS, or a list of the form `(- POS)', actually
  1098.      specifies the position of the right edge of the window with
  1099.      respect to the right edge of the screen.  A positive value of POS
  1100.      counts toward the left.  If the property is a negative integer
  1101.      -POS then POS is positive!
  1102.  
  1103. `top'
  1104.      The screen position of the top edge, in pixels, with respect to the
  1105.      top edge of the screen.  The value may be a positive number POS,
  1106.      or a list of the form `(+ POS)' which permits specifying a
  1107.      negative POS value.
  1108.  
  1109.      A negative number -POS, or a list of the form `(- POS)', actually
  1110.      specifies the position of the bottom edge of the window with
  1111.      respect to the bottom edge of the screen.  A positive value of POS
  1112.      counts toward the top.  If the property is a negative integer -POS
  1113.      then POS is positive!
  1114.  
  1115. `icon-left'
  1116.      The screen position of the left edge *of the frame's icon*, in
  1117.      pixels, counting from the left edge of the screen.  This takes
  1118.      effect if and when the frame is iconified.
  1119.  
  1120. `icon-top'
  1121.      The screen position of the top edge *of the frame's icon*, in
  1122.      pixels, counting from the top edge of the screen.  This takes
  1123.      effect if and when the frame is iconified.
  1124.  
  1125. `user-position'
  1126.      Non-`nil' if the screen position of the frame was explicitly
  1127.      requested by the user (for example, with the `-geometry' option).
  1128.      Nothing automatically makes this property non-`nil'; it is up to
  1129.      Lisp programs that call `make-frame' to specify this property as
  1130.      well as specifying the `left' and `top' properties.
  1131.  
  1132. `height'
  1133.      The height of the frame contents, in characters.  (To get the
  1134.      height in pixels, call `frame-pixel-height'; see *Note Size and
  1135.      Position::.)
  1136.  
  1137. `width'
  1138.      The width of the frame contents, in characters.  (To get the
  1139.      height in pixels, call `frame-pixel-width'; see *Note Size and
  1140.      Position::.)
  1141.  
  1142. `window-id'
  1143.      The number of the X window for the frame.
  1144.  
  1145. `minibuffer'
  1146.      Whether this frame has its own minibuffer.  The value `t' means
  1147.      yes, `nil' means no, `only' means this frame is just a minibuffer.
  1148.      If the value is a minibuffer window (in some other frame), the
  1149.      new frame uses that minibuffer. (Minibuffer-only and
  1150.      minibuffer-less frames are not yet implemented in XEmacs.)
  1151.  
  1152. `buffer-predicate'
  1153.      The buffer-predicate function for this frame.  The function
  1154.      `other-buffer' uses this predicate (from the selected frame) to
  1155.      decide which buffers it should consider, if the predicate is not
  1156.      `nil'.  It calls the predicate with one arg, a buffer, once for
  1157.      each buffer; if the predicate returns a non-`nil' value, it
  1158.      considers that buffer.
  1159.  
  1160. `scroll-bar-width'
  1161.      The width of the vertical scroll bar, in pixels.
  1162.  
  1163. `cursor-color'
  1164.      The color for the cursor that shows point.
  1165.  
  1166. `border-color'
  1167.      The color for the border of the frame.
  1168.  
  1169. `border-width'
  1170.      The width in pixels of the window border.
  1171.  
  1172. `internal-border-width'
  1173.      The distance in pixels between text and border.
  1174.  
  1175. `unsplittable'
  1176.      If non-`nil', this frame's window is never split automatically.
  1177.  
  1178. `inter-line-space'
  1179.      The space in pixels between adjacent lines of text. (Not currently
  1180.      implemented.)
  1181.  
  1182. `modeline'
  1183.      Whether the frame has a modeline.
  1184.  
  1185.